import request from '@/utils/request'

// 查询施工攻略案例说明列表
export function listCase(query) {
  return request({
    url: '/construction/case/list',
    method: 'get',
    params: query
  })
}

// 查询施工攻略案例说明详细
export function getCase(strategyCaseId) {
  return request({
    url: '/construction/case/' + strategyCaseId,
    method: 'get'
  })
}

// 新增施工攻略案例说明
export function addCase(data) {
  return request({
    url: '/construction/case',
    method: 'post',
    data: data
  })
}

// 修改施工攻略案例说明
export function updateCase(data) {
  return request({
    url: '/construction/case',
    method: 'put',
    data: data
  })
}

// 删除施工攻略案例说明
export function delCase(strategyCaseId) {
  return request({
    url: '/construction/case/' + strategyCaseId,
    method: 'delete'
  })
}

// 导出施工攻略案例说明
export function exportCase(query) {
  return request({
    url: '/construction/case/export',
    method: 'get',
    params: query
  })
}